$(document).ready(function(e) {
//    filter = new API.x_filter.FilterManager($('.scrollable'), $(window), onSectionChange, onSectionChangeFinished);
	
	var pager_id = '#pager_hold';
	var search_list = '#list';
	var sort_by_container = '#sort_by';
	var filter_trigger = $('.filterelement');
	
	is_filtering = false;
	
	var effects_manager = new API.x_effects.EffectsManager();
	var sorter_manager = new API.x_sorter.SorterManager(sort_by_container);
	var pager_manager = new API.x_pager.PagerManager("#results", "#list", pager_id, search_list);
	var slider_manager = new API.x_slider.SliderManager(pager_id, ".slider", "#list");

//	filter variables
	var references = {
			'effects_manager' : effects_manager,
			'slider_manager' : slider_manager,
			'sorter_manager' : sorter_manager,
			'pager_manager' : pager_manager,
	};

	var filter = new API.x_filter.FilterManager(filter_trigger, search_list, myresult_items, sort_by_container, references);

	filter.initialize();
});